//
//  triangle.cpp
//  cpplang
//
//  Created by jacob on 2025/7/11.
//

#include "triangle.hpp"

double area(double a,double b,double c) {
    //半周长
    double p = (a + b + c) / 2.0;
    return sqrt(p * (p-a) * (p-b) * (p-c));
}
